package com.ruoyi.hqfinance.service.impl;

import com.ruoyi.hqfinance.domain.HqCostSubject;
import com.ruoyi.hqfinance.mapper.HqCostSubjectMapper;
import com.ruoyi.hqfinance.service.HqCostSubjectService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class HqCostSubjectServiceImpl implements HqCostSubjectService {
    @Autowired
    private HqCostSubjectMapper hqCostSubjectMapper;
    @Override
    public List<HqCostSubject> selectAll() {
        return hqCostSubjectMapper.selectAll();
    }

    @Override
    public Boolean insert(HqCostSubject hqCostSubject) {
        return hqCostSubjectMapper.insert(hqCostSubject);
    }

    @Override
    public Boolean update(HqCostSubject hqCostSubject) {
        return hqCostSubjectMapper.update(hqCostSubject);
    }

    @Override
    public Boolean deleteById(Integer id) {
        return hqCostSubjectMapper.deleteById(id);
    }
}
